package com.project.poetry.service.entity.po.common;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.project.poetry.common.entity.CreateTimeFieldPO;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author mengxj
 */
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("t_comment")
public class CommentPO extends CreateTimeFieldPO {

    @TableId(type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("t_forum id")
    private Long forumId;

    @ApiModelProperty("用户id")
    private Long userId;

    @ApiModelProperty("上一个评论的id，用于回复评论")
    private Long prevId;

    @ApiModelProperty("内容")
    private String content;
}
